package Text_20;

import java.util.Scanner;

public class StringB {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		System.out.println("请输入一个字符串:");
		String str = sca.next();
		//1.链式编程
		String str1 = new StringBuilder().append(str).reverse().toString();
		//2.
//		StringBuilder sb = new StringBuilder(str);
//		sb.reverse();
//		String str1 = sb.toString();
		if(str1.equals( str)) {
			System.out.println("是");
			
		}else {
			System.out.println("否");
		}
	}

}
